<include file="./Tpl/Public/header.html" />

	<!--个人中心-购买记录 Start-->
  	<div class="my_order">
    	<div class="my_order_h1"><b></b>我的订单</div>
        <div class="my_order_t">已买到的课程</div>
    	<div class="my_order_thead">
        	<div class="my_order_th1">商品名称</div>
            <div class="my_order_th2">单价 | 优惠</div>
            <div class="my_order_th3">实付款 | 交易状态 | 操作</div>
            <div class="my_order_th4">备注</div>
      	</div>
        <!--无订单时显示 开始-->
       <eq name="orders" value="">
        <div class="my_order_no">
        	<p class="my_order_no_t">您当前没有任何订单!</p>
            <p class="my_order_no_c">请拨打免费热线：<strong>400-686-9850</strong><br>或在线咨询，量身定制英语学习方案。</p>
            <p><a target="_blank" href="http://chat16.live800.com/live800/chatClient/chatbox.jsp?companyID=294632&jid=1826801284&enterurl=http%3A%2F%2Flocalhost%2Fhaowaijiao%2Findex.php&pagetitle=%E5%A4%96%E6%95%99%E4%B8%80%E5%AF%B9%E4%B8%80_%E8%8B%B1%E8%AF%AD%E5%A4%96%E6%95%99_%E8%8B%B1%E8%AF%AD%E5%8F%A3%E8%AF%AD%E5%AD%A6%E4%B9%A0_%E8%8B%B1%E8%AF%AD%E5%9F%B9%E8%AE%AD_%E5%A5%BD%E5%A4%96%E6%95%99%E7%BD%91_%E5%85%A8%E7%BE%8E%E9%A1%B6%E5%B0%96%E5%A4%96%E6%95%991%E5%AF%B91%E5%8F%A3%E8%AF%AD%E5%9F%B9%E8%AE%AD&pagereferrer=http%3A%2F%2Flocalhost%2F&lan=zh&tm=1374633880123">立即咨询</a></p>
        </div>
       <else/>
        <volist name="orders" id="vo">
        <!--无订单时显示 结束-->
      	<table cellpadding="0" cellspacing="0" id="buyRrecords_{$key}">
           	  <thead>
               	  <tr>
                   	  <th colspan="4">订单编号：{$vo.order_no}<span>时间：{:date("Y-m-d H:i",$vo["create_date"])}</span></th>
                  </tr>
              </thead>      
              <tbody>
              	
               	   
               	<volist name="vo[course_info]" id="course_info">
             
               	  <tr>
               	  		
                   	  <td class="my_order_th1">
                       	  <strong>{$course_info["name"]}</strong>
                          <p>课时数：{$course_info["lesson_num"]}节</p>
                          <p>有效期：开通之日起{$course_info["lesson_valid"]}天</p>
                      </td>
                      <td class="my_order_th2">
                          
                       	  <strong>￥{$course_info["price"]*$course_info['discout']}</strong>
						  <if condition="$course_info lt 1">
                   		  <!--<p>即刻报名，立减2000元；<br />赠送<?php echo $course_info['salon_lesson']; ?>节沙龙课</p>-->
						  <p>即刻报名，{$course_info['discout']*100}折优惠；</p>
                          </if>
                      </td>
                      
                      <if condition="$key eq 0">
                      <td rowspan="10" class="my_order_th3">
                       	  <strong>￥{$vo["money"]}</strong>
                          <?php switch ($vo["status"]){
                          	case -2:
                          		echo '<div class="my_order_ds">已退款</div>';
                          		break;
                          	case -1:
//                          		echo '<div class="my_order_ds">付款失败</div>';
//                          		break;
                          	case 0:
                          		echo '<div class="my_order_ds">等待付款</div>';			//现在去支付
                          		break;
                          	case 1:
                          		echo '<div class="my_order_dsu">付款成功</div>';
                          		break;
                          	case 2:
                          		echo '<div class="my_order_ds">交易关闭</div>';		//重新购买
                          		break;
                          } ?>
                          <?php switch ($vo["status"]){	
                          	case -1:
                      	  	case 0:
                                 
                                  echo '<div class="my_order_a"><a onclick="clickCount(16);" sid="'.$vo["id"].'" href="'.C('WWWURL').'/usercenter/buy.htm?id='.$vo["id"].'" class="my_order_b1" target="_blank" >现在支付</a><a onclick="clickCount(17);" sid="'.$vo["id"].'" tid="0" href="###" class="my_order_a1">删除</a></div>';			//现在去支付
                                        
                                   break;
                      	  		
                      	  	case 2:
                      	  		echo '<div class="my_order_a"><a onclick="clickCount(17);" sid="'.$k["id"].'" class="my_order_a1" href="###" tid="0">删除</a></div>';
                      	  		break;
                           } ?>
                          
                      </td>
                      <td rowspan="10" class="my_order_th4">
                      	  <?php switch ($vo["status"]){	
                      	  	case -1:
                      	  	case 0:
                      	  		echo "<a onclick='clickCount(18);' target='_blank' href='".C('WWWURL')."/remittance.htm'>网银转账或银行汇款</a>";			//现在去支付
                      	  		break;
                      	  	case 1:
                      	  		echo $k["remarks"];
                      	  		break;
                           } ?>
                      </td>
                     </if>
                  </tr>
                </volist>
              
              </tbody>
          </table>
        	</volist>
         </eq>
    </div>


<include file="./Tpl/Public/footer.html" />
<div id="tip_my_buy" style="display:none">
	<div class="tipBg"></div>
	<div class="tip my_buy_tip1">
		<div class="tip_t"><a id="tip_my_buy_close" href="###" title="关闭"></a>提示</div>
	    <div class="tip_c">
	    	<p>您确定要删除该订单吗？删除订单后，不能恢复了哦。</p>
	        <a tokenid='{$token}' id="tip_my_buy_summbit" href="###">确定</a>
	    </div>
	</div>
</div>
